package com.benshou.bsoa.model;

import com.baomidou.mybatisplus.annotation.*;
import com.benshou.bsoa.common.db.BaseModel;
import com.benshou.bsoa.common.db.BusinessId;
import com.benshou.bsoa.common.model.HasId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author <a href="mailto:liuzhenbang@benshou.com">Liu Zhenbang</a>
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("test")
public class Test extends BaseModel implements HasId {

    /**
     * 自增主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 测试编号
     */
    @BusinessId
    @TableField(value = "test_no", fill = FieldFill.INSERT)
    private String testNo;
}
